<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>重复渐变</title>
    <style>
        .box {
            width: 800px;
            height: 800px;
            margin: 0 auto;
            outline: 1px solid red;
            
        }
        .lr{
            /* background-image: repeating-linear-gradient(to right, rgb(213, 236, 203) ,rgb(235, 170, 96) 50% ); */
            /* background-image: linear-gradient(to right, rgb(213, 236, 203) 0px,rgb(235, 170, 96) 100px); */
            background-image: repeating-linear-gradient(to right,#000,gray 20%);
        }
        .tw{
            background-image: repeating-linear-gradient(to right,#fff,#fff 50px,rgba(0, 0, 0, 0.582) 50px,rgba(0, 0, 0, 0.582)100px);
        }
        .rr{
            background-image: repeating-radial-gradient(pink,lightgreen 40px);
        }
    </style>
</head>

<body>
    <div class="box lr">

    </div>
    <div class="box tw">

    </div>
    <div class="box rr">

    </div>
</body>

</html>